Integrand size = 37, antiderivative size = 269 \[ \int \frac {(A+B \sin (e+f x)) (c+d \sin (e+f x))^n}{(a+a \sin (e+f x))^{3/2}} \, dx=-\frac {B \operatorname {AppellF1}\left (1+n,\frac {1}{2},1,2+n,\frac {c+d \sin (e+f x)}{c+d},\frac {c+d \sin (e+f x)}{c-d}\right ) \cos (e+f x) \sqrt {\frac {d (1-\sin (e+f x))}{c+d}} (c+d \sin (e+f x))^{1+n}}{a (c-d) f (1+n) (1-\sin (e+f x)) \sqrt {a+a \sin (e+f x)}}+\frac {(A-B) d \operatorname {AppellF1}\left (1+n,\frac {1}{2},2,2+n,\frac {c+d \sin (e+f x)}{c+d},\frac {c+d \sin (e+f x)}{c-d}\right ) \cos (e+f x) \sqrt {\frac {d (1-\sin (e+f x))}{c+d}} (c+d \sin (e+f x))^{1+n}}{(c-d)^2 f (1+n) (a-a \sin (e+f x)) \sqrt {a+a \sin (e+f x)}} \]
-B*AppellF1(1+n,1,1/2,2+n,(c+d*sin(f*x+e))/(c-d),(c+d*sin(f*x+e))/(c+d))*c os(f*x+e)*(c+d*sin(f*x+e))^(1+n)*(d*(1-sin(f*x+e))/(c+d))^(1/2)/a/(c-d)/f/ (1+n)/(1-sin(f*x+e))/(a+a*sin(f*x+e))^(1/2)+(A-B)*d*AppellF1(1+n,2,1/2,2+n ,(c+d*sin(f*x+e))/(c-d),(c+d*sin(f*x+e))/(c+d))*cos(f*x+e)*(c+d*sin(f*x+e) )^(1+n)*(d*(1-sin(f*x+e))/(c+d))^(1/2)/(c-d)^2/f/(1+n)/(a-a*sin(f*x+e))/(a +a*sin(f*x+e))^(1/2)
Leaf count is larger than twice the leaf count of optimal. \(603\) vs. \(2(269)=538\).
Time = 16.63 (sec) , antiderivative size = 603, normalized size of antiderivative = 2.24 \[ \int \frac {(A+B \sin (e+f x)) (c+d \sin (e+f x))^n}{(a+a \sin (e+f x))^{3/2}} \, dx=\frac {\sec (e+f x) (c+d \sin (e+f x))^n \left (a B (1+\sin (e+f x)) \left (a \operatorname {AppellF1}\left (1,\frac {1}{2},-n,2,\frac {1}{2} (1+\sin (e+f x)),\frac {d (1+\sin (e+f x))}{-c+d}\right ) \sqrt {2-2 \sin (e+f x)} (1+\sin (e+f x)) \left (\frac {c+d \sin (e+f x)}{c-d}\right )^{-n}-\frac {4 \sqrt {\frac {-1+\sin (e+f x)}{1+\sin (e+f x)}} \left (-2 a (1+2 n) \operatorname {AppellF1}\left (\frac {1}{2}-n,-\frac {1}{2},-n,\frac {3}{2}-n,\frac {2}{1+\sin (e+f x)},\frac {-c+d}{d+d \sin (e+f x)}\right )+a (-1+2 n) \operatorname {AppellF1}\left (-\frac {1}{2}-n,-\frac {1}{2},-n,\frac {1}{2}-n,\frac {2}{1+\sin (e+f x)},\frac {-c+d}{d+d \sin (e+f x)}\right ) (1+\sin (e+f x))\right ) \left (1+\frac {c-d}{d+d \sin (e+f x)}\right )^{-n}}{-1+4 n^2}\right )+a A (1+\sin (e+f x)) \left (a \operatorname {AppellF1}\left (1,\frac {1}{2},-n,2,\frac {1}{2} (1+\sin (e+f x)),\frac {d (1+\sin (e+f x))}{-c+d}\right ) \sqrt {2-2 \sin (e+f x)} (1+\sin (e+f x)) \left (\frac {c+d \sin (e+f x)}{c-d}\right )^{-n}-\frac {4 \sqrt {\frac {-1+\sin (e+f x)}{1+\sin (e+f x)}} \left (2 a (1+2 n) \operatorname {AppellF1}\left (\frac {1}{2}-n,-\frac {1}{2},-n,\frac {3}{2}-n,\frac {2}{1+\sin (e+f x)},\frac {-c+d}{d+d \sin (e+f x)}\right )+a (-1+2 n) \operatorname {AppellF1}\left (-\frac {1}{2}-n,-\frac {1}{2},-n,\frac {1}{2}-n,\frac {2}{1+\sin (e+f x)},\frac {-c+d}{d+d \sin (e+f x)}\right ) (1+\sin (e+f x))\right ) \left (1+\frac {c-d}{d+d \sin (e+f x)}\right )^{-n}}{-1+4 n^2}\right )\right )}{8 a^3 f \sqrt {a (1+\sin (e+f x))}} \]
(Sec[e + f*x]*(c + d*Sin[e + f*x])^n*(a*B*(1 + Sin[e + f*x])*((a*AppellF1[ 1, 1/2, -n, 2, (1 + Sin[e + f*x])/2, (d*(1 + Sin[e + f*x]))/(-c + d)]*Sqrt [2 - 2*Sin[e + f*x]]*(1 + Sin[e + f*x]))/((c + d*Sin[e + f*x])/(c - d))^n - (4*Sqrt[(-1 + Sin[e + f*x])/(1 + Sin[e + f*x])]*(-2*a*(1 + 2*n)*AppellF1 [1/2 - n, -1/2, -n, 3/2 - n, 2/(1 + Sin[e + f*x]), (-c + d)/(d + d*Sin[e + f*x])] + a*(-1 + 2*n)*AppellF1[-1/2 - n, -1/2, -n, 1/2 - n, 2/(1 + Sin[e + f*x]), (-c + d)/(d + d*Sin[e + f*x])]*(1 + Sin[e + f*x])))/((-1 + 4*n^2) *(1 + (c - d)/(d + d*Sin[e + f*x]))^n)) + a*A*(1 + Sin[e + f*x])*((a*Appel lF1[1, 1/2, -n, 2, (1 + Sin[e + f*x])/2, (d*(1 + Sin[e + f*x]))/(-c + d)]* Sqrt[2 - 2*Sin[e + f*x]]*(1 + Sin[e + f*x]))/((c + d*Sin[e + f*x])/(c - d) )^n - (4*Sqrt[(-1 + Sin[e + f*x])/(1 + Sin[e + f*x])]*(2*a*(1 + 2*n)*Appel lF1[1/2 - n, -1/2, -n, 3/2 - n, 2/(1 + Sin[e + f*x]), (-c + d)/(d + d*Sin[ e + f*x])] + a*(-1 + 2*n)*AppellF1[-1/2 - n, -1/2, -n, 1/2 - n, 2/(1 + Sin [e + f*x]), (-c + d)/(d + d*Sin[e + f*x])]*(1 + Sin[e + f*x])))/((-1 + 4*n ^2)*(1 + (c - d)/(d + d*Sin[e + f*x]))^n))))/(8*a^3*f*Sqrt[a*(1 + Sin[e + f*x])])
Time = 0.69 (sec) , antiderivative size = 267, normalized size of antiderivative = 0.99, number of steps used = 8, number of rules used = 7, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.189, Rules used = {3042, 3466, 3042, 3267, 27, 154, 153}
Below are the steps used by Rubi to obtain the solution. The rule number used for the transformation is given above next to the arrow. The rules definitions used are listed below.
\(\displaystyle \int \frac {(A+B \sin (e+f x)) (c+d \sin (e+f x))^n}{(a \sin (e+f x)+a)^{3/2}} \, dx\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \int \frac {(A+B \sin (e+f x)) (c+d \sin (e+f x))^n}{(a \sin (e+f x)+a)^{3/2}}dx\) |
\(\Big \downarrow \) 3466 |
\(\displaystyle (A-B) \int \frac {(c+d \sin (e+f x))^n}{(\sin (e+f x) a+a)^{3/2}}dx+\frac {B \int \frac {(c+d \sin (e+f x))^n}{\sqrt {\sin (e+f x) a+a}}dx}{a}\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle (A-B) \int \frac {(c+d \sin (e+f x))^n}{(\sin (e+f x) a+a)^{3/2}}dx+\frac {B \int \frac {(c+d \sin (e+f x))^n}{\sqrt {\sin (e+f x) a+a}}dx}{a}\) |
\(\Big \downarrow \) 3267 |
\(\displaystyle \frac {a^2 (A-B) \cos (e+f x) \int \frac {(c+d \sin (e+f x))^n}{a^2 (\sin (e+f x)+1)^2 \sqrt {a-a \sin (e+f x)}}d\sin (e+f x)}{f \sqrt {a-a \sin (e+f x)} \sqrt {a \sin (e+f x)+a}}+\frac {a B \cos (e+f x) \int \frac {(c+d \sin (e+f x))^n}{a (\sin (e+f x)+1) \sqrt {a-a \sin (e+f x)}}d\sin (e+f x)}{f \sqrt {a-a \sin (e+f x)} \sqrt {a \sin (e+f x)+a}}\) |
\(\Big \downarrow \) 27 |
\(\displaystyle \frac {(A-B) \cos (e+f x) \int \frac {(c+d \sin (e+f x))^n}{(\sin (e+f x)+1)^2 \sqrt {a-a \sin (e+f x)}}d\sin (e+f x)}{f \sqrt {a-a \sin (e+f x)} \sqrt {a \sin (e+f x)+a}}+\frac {B \cos (e+f x) \int \frac {(c+d \sin (e+f x))^n}{(\sin (e+f x)+1) \sqrt {a-a \sin (e+f x)}}d\sin (e+f x)}{f \sqrt {a-a \sin (e+f x)} \sqrt {a \sin (e+f x)+a}}\) |
\(\Big \downarrow \) 154 |
\(\displaystyle \frac {(A-B) \cos (e+f x) \sqrt {\frac {d (1-\sin (e+f x))}{c+d}} \int \frac {(c+d \sin (e+f x))^n}{(\sin (e+f x)+1)^2 \sqrt {\frac {d}{c+d}-\frac {d \sin (e+f x)}{c+d}}}d\sin (e+f x)}{f (a-a \sin (e+f x)) \sqrt {a \sin (e+f x)+a}}+\frac {B \cos (e+f x) \sqrt {\frac {d (1-\sin (e+f x))}{c+d}} \int \frac {(c+d \sin (e+f x))^n}{(\sin (e+f x)+1) \sqrt {\frac {d}{c+d}-\frac {d \sin (e+f x)}{c+d}}}d\sin (e+f x)}{f (a-a \sin (e+f x)) \sqrt {a \sin (e+f x)+a}}\) |
\(\Big \downarrow \) 153 |
\(\displaystyle \frac {d (A-B) \cos (e+f x) \sqrt {\frac {d (1-\sin (e+f x))}{c+d}} (c+d \sin (e+f x))^{n+1} \operatorname {AppellF1}\left (n+1,\frac {1}{2},2,n+2,\frac {c+d \sin (e+f x)}{c+d},\frac {c+d \sin (e+f x)}{c-d}\right )}{f (n+1) (c-d)^2 (a-a \sin (e+f x)) \sqrt {a \sin (e+f x)+a}}-\frac {B \cos (e+f x) \sqrt {\frac {d (1-\sin (e+f x))}{c+d}} (c+d \sin (e+f x))^{n+1} \operatorname {AppellF1}\left (n+1,\frac {1}{2},1,n+2,\frac {c+d \sin (e+f x)}{c+d},\frac {c+d \sin (e+f x)}{c-d}\right )}{f (n+1) (c-d) (a-a \sin (e+f x)) \sqrt {a \sin (e+f x)+a}}\) |
-((B*AppellF1[1 + n, 1/2, 1, 2 + n, (c + d*Sin[e + f*x])/(c + d), (c + d*S in[e + f*x])/(c - d)]*Cos[e + f*x]*Sqrt[(d*(1 - Sin[e + f*x]))/(c + d)]*(c + d*Sin[e + f*x])^(1 + n))/((c - d)*f*(1 + n)*(a - a*Sin[e + f*x])*Sqrt[a + a*Sin[e + f*x]])) + ((A - B)*d*AppellF1[1 + n, 1/2, 2, 2 + n, (c + d*Si n[e + f*x])/(c + d), (c + d*Sin[e + f*x])/(c - d)]*Cos[e + f*x]*Sqrt[(d*(1 - Sin[e + f*x]))/(c + d)]*(c + d*Sin[e + f*x])^(1 + n))/((c - d)^2*f*(1 + n)*(a - a*Sin[e + f*x])*Sqrt[a + a*Sin[e + f*x]])
3.4.35.3.1 Defintions of rubi rules used
Int[(a_)*(Fx_), x_Symbol] :> Simp[a Int[Fx, x], x] /; FreeQ[a, x] && !Ma tchQ[Fx, (b_)*(Gx_) /; FreeQ[b, x]]
Int[((a_) + (b_.)*(x_))^(m_)*((c_.) + (d_.)*(x_))^(n_)*((e_.) + (f_.)*(x_)) ^(p_), x_] :> Simp[(b*e - a*f)^p*((a + b*x)^(m + 1)/(b^(p + 1)*(m + 1)*Simp lify[b/(b*c - a*d)]^n))*AppellF1[m + 1, -n, -p, m + 2, (-d)*((a + b*x)/(b*c - a*d)), (-f)*((a + b*x)/(b*e - a*f))], x] /; FreeQ[{a, b, c, d, e, f, m, n}, x] && !IntegerQ[m] && !IntegerQ[n] && IntegerQ[p] && GtQ[Simplify[b/( b*c - a*d)], 0] && !(GtQ[Simplify[d/(d*a - c*b)], 0] && SimplerQ[c + d*x, a + b*x])
Int[((a_) + (b_.)*(x_))^(m_)*((c_.) + (d_.)*(x_))^(n_)*((e_.) + (f_.)*(x_)) ^(p_), x_] :> Simp[(c + d*x)^FracPart[n]/(Simplify[b/(b*c - a*d)]^IntPart[n ]*(b*((c + d*x)/(b*c - a*d)))^FracPart[n]) Int[(a + b*x)^m*Simp[b*(c/(b*c - a*d)) + b*d*(x/(b*c - a*d)), x]^n*(e + f*x)^p, x], x] /; FreeQ[{a, b, c, d, e, f, m, n}, x] && !IntegerQ[m] && !IntegerQ[n] && IntegerQ[p] && !G tQ[Simplify[b/(b*c - a*d)], 0] && !SimplerQ[c + d*x, a + b*x]
Int[((a_) + (b_.)*sin[(e_.) + (f_.)*(x_)])^(m_)*((c_) + (d_.)*sin[(e_.) + ( f_.)*(x_)])^(n_.), x_Symbol] :> Simp[a^2*(Cos[e + f*x]/(f*Sqrt[a + b*Sin[e + f*x]]*Sqrt[a - b*Sin[e + f*x]])) Subst[Int[(a + b*x)^(m - 1/2)*((c + d* x)^n/Sqrt[a - b*x]), x], x, Sin[e + f*x]], x] /; FreeQ[{a, b, c, d, e, f, m , n}, x] && NeQ[b*c - a*d, 0] && EqQ[a^2 - b^2, 0] && NeQ[c^2 - d^2, 0] && !IntegerQ[m]
Int[((a_) + (b_.)*sin[(e_.) + (f_.)*(x_)])^(m_.)*((A_.) + (B_.)*sin[(e_.) + (f_.)*(x_)])*((c_.) + (d_.)*sin[(e_.) + (f_.)*(x_)])^(n_), x_Symbol] :> Si mp[(A*b - a*B)/b Int[(a + b*Sin[e + f*x])^m*(c + d*Sin[e + f*x])^n, x], x ] + Simp[B/b Int[(a + b*Sin[e + f*x])^(m + 1)*(c + d*Sin[e + f*x])^n, x], x] /; FreeQ[{a, b, c, d, e, f, A, B, m, n}, x] && NeQ[b*c - a*d, 0] && EqQ [a^2 - b^2, 0] && NeQ[c^2 - d^2, 0] && NeQ[A*b + a*B, 0]
\[\int \frac {\left (A +B \sin \left (f x +e \right )\right ) \left (c +d \sin \left (f x +e \right )\right )^{n}}{\left (a +a \sin \left (f x +e \right )\right )^{\frac {3}{2}}}d x\]
\[ \int \frac {(A+B \sin (e+f x)) (c+d \sin (e+f x))^n}{(a+a \sin (e+f x))^{3/2}} \, dx=\int { \frac {{\left (B \sin \left (f x + e\right ) + A\right )} {\left (d \sin \left (f x + e\right ) + c\right )}^{n}}{{\left (a \sin \left (f x + e\right ) + a\right )}^{\frac {3}{2}}} \,d x } \]
integral(-(B*sin(f*x + e) + A)*sqrt(a*sin(f*x + e) + a)*(d*sin(f*x + e) + c)^n/(a^2*cos(f*x + e)^2 - 2*a^2*sin(f*x + e) - 2*a^2), x)
\[ \int \frac {(A+B \sin (e+f x)) (c+d \sin (e+f x))^n}{(a+a \sin (e+f x))^{3/2}} \, dx=\int \frac {\left (A + B \sin {\left (e + f x \right )}\right ) \left (c + d \sin {\left (e + f x \right )}\right )^{n}}{\left (a \left (\sin {\left (e + f x \right )} + 1\right )\right )^{\frac {3}{2}}}\, dx \]
\[ \int \frac {(A+B \sin (e+f x)) (c+d \sin (e+f x))^n}{(a+a \sin (e+f x))^{3/2}} \, dx=\int { \frac {{\left (B \sin \left (f x + e\right ) + A\right )} {\left (d \sin \left (f x + e\right ) + c\right )}^{n}}{{\left (a \sin \left (f x + e\right ) + a\right )}^{\frac {3}{2}}} \,d x } \]
Timed out. \[ \int \frac {(A+B \sin (e+f x)) (c+d \sin (e+f x))^n}{(a+a \sin (e+f x))^{3/2}} \, dx=\text {Timed out} \]
Timed out. \[ \int \frac {(A+B \sin (e+f x)) (c+d \sin (e+f x))^n}{(a+a \sin (e+f x))^{3/2}} \, dx=\int \frac {\left (A+B\,\sin \left (e+f\,x\right )\right )\,{\left (c+d\,\sin \left (e+f\,x\right )\right )}^n}{{\left (a+a\,\sin \left (e+f\,x\right )\right )}^{3/2}} \,d x \]